package com.sike.netty.jinjie.bytebuf.recycler;

import io.netty.util.Recycler;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class User {
    private String name;

    private Integer age;

    private Recycler.Handle<User> handler;

    public User(Recycler.Handle<User> handler) {
        this.handler = handler;
    }

    public Recycler.Handle<User> getHandler() {
        return handler;
    }
}
